import re

_blank_pattern = re.compile(r'\s+')


def strip(s):
    return _blank_pattern.sub(' ', s)
